package cn.fbs.service;

import cn.fbs.dao.dm.*;
import cn.fbs.model.*;
import cn.fbs.model.dm.TSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DictionaryService {
    @Autowired
    private DMVideoTypeMapper videoTypeMapper;
    @Autowired
    private DMSensorTypeMapper sensorTypeMapper;
    @Autowired
    private DMShotPlatformMapper shotPlatformMapper;
    @Autowired
    private DMImageSourceMapper imageSourceMapper;
    @Autowired
    private DMClassificationInfoMapper classificationMapper;

    @Autowired
    private DMImportanceInfoMapper importanceMapper;
    @Autowired
    private DMCodeCategoryTypeMapper categoryTypeMapper;

    @Autowired
    private TSourceMapper sourceMapper;


    public List<TVideoType> getVideoTypes( ) {
        List<TVideoType> list = videoTypeMapper.selectAll();

        return list;
    }

    public List<TSensorType> getSensorTypes(){
        return sensorTypeMapper.selectAll();
    }

    public List<TShotPlatform> getShotPlatform(){
        return shotPlatformMapper.selectAll();
    }
    public List<TImageSource> getImageSources(){
        return imageSourceMapper.selectAll();
    }

    public List<TClassificationInfo> getSecretType() {
        return classificationMapper.selectAll();
    }

    public List<TImportanceInfo> getImportanceType() {
        return importanceMapper.selectAll();
    }

    public List<TCodeCategoryType> getFileType() {

        return categoryTypeMapper.getFileType();
    }

    public List<TSource> getSource() {
        return sourceMapper.getSource();
    }
}
